Skip to content

test(pm-stack/claimant): port Slice-1 suite to live API, add held-label gate (#7670) - #8113

Merged
dezren39 merged 1 commit into
mainfrom
queue/14501-7670-claimant-suite
Nov 10, 2026
Merged

dezren39 merged 1 commit into
mainfrom
queue/14501-7670-claimant-suite

Conversation

@dezren39

@dezren39 dezren39 commented Nov 10, 2026 •

Copy link
Copy Markdown
Member

Summary

Ports the Slice-1 claimant suite (pm-stack/opencode-claimant/test/test_claimant.py) to the live claimant API, implements the one safety pin that was genuinely missing live, and wires the ported suite into CI.

Fixes #7670.

What changed

  • claimant.py — held-label gate in launch_step (new Step 4a2): a candidate whose issue carries held, user/owned, do-not-merge, or do-not-auto-edit is skipped with reason held_issue_labels: … before any session is created; the label read (gh CLI) fails closed — an unreadable label set is a held_label_check_failed skip, never a launch. Candidates without a repo/issue reference have nothing to check and are unaffected.
  • claimant.py — the execution prompt now dumps a credential-redacted copy of the packet (_prompt_safe_packet): credential-shaped keys (password/secret/token/credential/api_key/private_key, recursive) are replaced with [redacted], so a credential can never enter a prompt surface via the packet.
  • test/test_claimant.py — rewritten against launch_step(mode, cap_room) / supervision_step(mode): bind-before-prompt ordering with the password kept out of the prompt, held-label prevention + fail-closed label read, session-create failure binds nothing, and zero-message-read → DELETE → atomic recovery bind (carrying LAUNCHED_BY_RECOVERY_ZERO_MESSAGE). Superseded Slice-1 pins are named in the suite header: the checkpoint-between-bind-and-prompt step (the live flow has none; prompt delivery is verified by _send_prompt reconcile instead) and the per-packet route/model (the live claimant uses the fixed workhorse route).
  • test/__init__.py — package marker so unittest discover -s pm-stack/opencode-claimant descends into the suite directory.
  • .github/workflows/pm-stack-tests.yml — the ported suite is added to the claimant Python suites step with the house file-exists assertion.

Evidence

  • Before (clean main a849685): python3 -m unittest pm-stack/opencode-claimant/test/test_claimant.py → Ran 4 tests, FAILED (errors=4, AttributeError: module 'claimant' does not have the attribute '_POLL').
  • After: ported suite 5/5 OK; wired suites test_poll.py (56) + test_claimant.py (17) OK; python3 -m unittest discover -s pm-stack/opencode-claimant → Ran 78 tests, OK (zero errors from stale suites).
  • Oracle: the live claimant's observable behavior — skip records, bind/prompt argv order at the subprocess boundary, and the prompt text itself.

Merge Danger

Door: Two-way — revert restores the stale suite and removes the gate.
Blast Radius: Small — claimant launch path only. The gate skips only candidates whose issues carry held labels (previously launchable — the bug); the prompt redaction only replaces credential-shaped values.


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

@dezren39
dezren39 requested a review from a team as a code owner November 10, 2026 03:54
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-10T03:54:51.257111Z
We couldn’t complete this review. Comment @codex review to try again.
1ff46e1 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@coderabbitai

coderabbitai Bot commented Nov 10, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 50 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 2dca429c-f50f-4079-ac69-ca750ae644eb
Commits

Reviewing files that changed from the base of the PR and between a849685 and 1ff46e1.

Files selected for processing: 4

  • .github/workflows/pm-stack-tests.yml
  • pm-stack/opencode-claimant/claimant.py
  • pm-stack/opencode-claimant/test/__init__.py
  • pm-stack/opencode-claimant/test/test_claimant.py
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@dezren39

Copy link
Copy Markdown
Member Author

Codex findings disposition (task 14501, lane code-t): the Codex code review on this PR failed to run — the connector reported Codex usage limits reached, and no review findings were posted (review-comment list is empty). There is no substantive Codex finding to fix or rebut; the failed-review state is a quota failure, not a code finding. Merge remains gated on CI green.

@dezren39
dezren39 merged commit e76438b into main Nov 10, 2026
2 of 8 checks passed
@dezren39
dezren39 deleted the queue/14501-7670-claimant-suite branch November 10, 2026 08:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant